package com.znjc.device.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.znjc.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 【设备命令下发日志】对象 device_command_log
 *
 * @author zengpc
 * @date 2023-12-04
 */
@Data
public class DeviceCommandLog extends BaseZnjcEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 规则名称
     */
    @Excel(name = "串口id")
    private Long serialId;

    /**
     * 串口号
     */
    @TableField(exist = false)
    @Excel(name = "串口号")
    private String serialCode;

    /**
     * 命令指令id集合
     */
    @Excel(name = "命令指令Id集合")
    private String commandIds;
    /**
     * 命令指令集合
     */
    @TableField(exist = false)
    @Excel(name = "命令指令集合")
    private String commandNames;
    /**
     * 查询时间开始时间
     */
    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date queryStartTime;
    /**
     * 查询时间开始时间
     */
    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date queryEndTime;
}
